package com.flexdms.i18n;

import javax.faces.application.Application;
import javax.faces.application.ApplicationFactory;

public class LocalizedApplicationFactory extends ApplicationFactory
{
	
	ApplicationFactory parentApplicationFactory;
	

	public LocalizedApplicationFactory(
			ApplicationFactory parentApplicationFactory)
	{
		this.parentApplicationFactory = parentApplicationFactory;
		application=new LocalizedApplication(parentApplicationFactory.getApplication());
	}

	Application application;
	@Override
	public Application getApplication()
	{
		return application;
	}

	@Override
	public void setApplication(Application application)
	{
		
		this.application=application;
	}

	@Override
	public ApplicationFactory getWrapped()
	{
		return parentApplicationFactory;
	}

	
}
